/*  1:   */ package com.atomikos.icatch.admin.jmx;
/*  2:   */ 
/*  3:   */ import java.util.HashMap;
/*  4:   */ import java.util.Iterator;
/*  5:   */ import java.util.Map;
/*  6:   */ import java.util.Set;
/*  7:   */ import javax.management.MBeanServer;
/*  8:   */ import javax.management.ObjectName;
/*  9:   */ 
/* 10:   */ public class JmxRegistry
/* 11:   */   implements JmxRegistryMBean
/* 12:   */ {
/* 13:49 */   private static Map servers = new HashMap();
/* 14:   */   
/* 15:   */   public static Iterator getServers()
/* 16:   */   {
/* 17:56 */     return servers.entrySet().iterator();
/* 18:   */   }
/* 19:   */   
/* 20:   */   protected static synchronized void addServer(JmxRegistry adder, MBeanServer server)
/* 21:   */   {
/* 22:62 */     servers.put(adder, server);
/* 23:   */   }
/* 24:   */   
/* 25:   */   protected static synchronized void removeServer(JmxRegistry adder)
/* 26:   */   {
/* 27:67 */     servers.remove(adder);
/* 28:   */   }
/* 29:   */   
/* 30:   */   public ObjectName preRegister(MBeanServer arg0, ObjectName arg1)
/* 31:   */     throws Exception
/* 32:   */   {
/* 33:79 */     addServer(this, arg0);
/* 34:80 */     return null;
/* 35:   */   }
/* 36:   */   
/* 37:   */   public void postRegister(Boolean arg0) {}
/* 38:   */   
/* 39:   */   public void preDeregister()
/* 40:   */     throws Exception
/* 41:   */   {
/* 42:91 */     removeServer(this);
/* 43:   */   }
/* 44:   */   
/* 45:   */   public void postDeregister() {}
/* 46:   */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions\3.7.0\transactions-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.admin.jmx.JmxRegistry
 * JD-Core Version:    0.7.0.1
 */